<?php

namespace App\Trip\Payment;

use Exception;

class PaymentBusiness
{
    /**
     * @throws Exception
     */
    public static function parsePaymentAttach(string $attach): PaymentAttach
    {
        $attach = json_decode($attach, true);
        return new PaymentAttach($attach);
    }
}